Skip to content

(1/6) Add content-addressed local inference caches - #94

Open
ErlisLushtaku wants to merge 3 commits into
cachefrom
cache-stack/01-local-store
Open

(1/6) Add content-addressed local inference caches#94
ErlisLushtaku wants to merge 3 commits into
cachefrom
cache-stack/01-local-store

Conversation

@ErlisLushtaku

Copy link
Copy Markdown
Collaborator

Description

Adds local SQLite caches for model completions and judge outputs.

  • Rows are keyed by the hash of the rendered model input.
  • Completion and judgement data use separate role-specific paths and schemas.
  • Typed columns keep benchmark, model, position and orientation queryable.
  • metadata.json contains the validated model descriptor, while rows retain pushed_by, pushed_at and run_id.

This is stacked on #71.

Tests: uv run pytest; uv run ruff check .; uv run ruff format --check ..

Introduce a minimal descriptor-hashed store contract with typed filter fields and last-write-wins upserts, without changing PR #71 runtime wiring.
Keep only row data used by the local cache and retain descriptor-content validation without redundant folder checks.
Retain writer, timestamp, and run identifiers for future shared-cache attribution while keeping content hashes as primary keys.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant